package com.sinosoft.tcmcp.system.web.dto;

import com.sinosoft.framework.core.api.domain.ParameterEntity;
import com.sinosoft.framework.core.common.utils.ajax.ObjectUtil;

/**
 * 参数信息传输类
 * @author xiaoxiong
 *
 */
public class ParameterData implements java.io.Serializable{

	private static final long serialVersionUID = 1L;

	private String id;	//	参数编号
	private String aid;	//	应用编号
	private String name;	//	参数名称
	private String value;	//	参数值
	private String description;	//	描述
	private String readonly;	//	只读 
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAid() {
		return aid;
	}
	public void setAid(String aid) {
		this.aid = aid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getReadonly() {
		return readonly;
	}
	public void setReadonly(String readonly) {
		this.readonly = readonly;
	}
	
	/**
	 * 传输类转化成实体类
	 * @return parameterEntity	参数实体
	 */
	public ParameterEntity toParameterEntity(){
		ParameterEntity parameterEntity = new ParameterEntity();
		ObjectUtil.oldToNew(parameterEntity, this, "serialVersionUID");
		return parameterEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 * @param parameterEntity	参数实体
	 */
	public void toParaneterData(ParameterEntity parameterEntity){
		ObjectUtil.oldToNew(this, parameterEntity, "serialVersionUID");
	}

}
